import React from 'react'
import { Button } from 'antd'
import PublishTable from '../../../components/publish-manage/publishTable'
import usePublish from '../../../components/publish-manage/usePublish'

export default function Sunset() {
  //3=== 已下线的
  const { dataSource, handleDelete } = usePublish(3)

  return (
    <div>
      <PublishTable
        dataSource={dataSource}
        button={(id) => (
          <Button danger onClick={() => handleDelete(id)}>
            删除
          </Button>
        )}
      ></PublishTable>
    </div>
  )
}
